package com.t249.bdqn.renting.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.t249.bdqn.renting.entity.SysBooking;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface SysBookingDao extends BaseMapper<SysBooking> {

    @Update("UPDATE `renting`.`sys_booking` SET`appointment_time` = #{appointmentTime},`rental_stateid` = #{rentalStateid},quxiao_Yuanyin = #{quxiaoYuanyin} WHERE `id` = #{id}")
    public int XuigaiZhuantai(@Param("appointmentTime")String appointmentTime,@Param("rentalStateid")String rentalStateid,@Param("quxiaoYuanyin")String quxiaoYuanyin,@Param("id")String id);

    @Update("UPDATE `renting`.`sys_booking` SET`appointment_time` = #{appointmentTime} WHERE `id` = #{id}")
    public int XuigaiBiangen(@Param("appointmentTime")String appointmentTime,@Param("id")String id);
}
